package org.example.log;

import cn.lingyangwl.framework.core.response.Resp;
import org.example.log.trace.utils.MDCTraceUtils;
import org.slf4j.TtlMDCAdapter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author shenguangyang
 */
@SpringBootApplication
public class LogbackApplication {
    public static void main(String[] args) {
        TtlMDCAdapter.init();
        Resp.setTraceIdKey(MDCTraceUtils.KEY_TRACE_ID);
        SpringApplication.run(LogbackApplication.class, args);
    }
}